package parttern.singleton;

public class SingleInstanceInner {

    private static class Holder {
        private static final SingleInstanceInner INSTANCE = new SingleInstanceInner();
    }

    private SingleInstanceInner() {

    }

    public static SingleInstanceInner getInstance() {
        return Holder.INSTANCE;
    }

    public void show() {
        System.out.println("SingleInstanceInner show():" + this.hashCode());
    }
}
